package com.zhengxing.jienci.user.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 积分等级对照表
 * </p>
 *
 * @author yyh
 * @since 2020-12-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rank_point")
public class RankPoint extends Model<RankPoint> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@ApiModelProperty("主键")
	private String id;
	/**
	 * 等级
	 */
	@ApiModelProperty("等级")
	private Integer rank;
	/**
	 * 最小积分
	 */
	@ApiModelProperty("最小积分")
	private Long minPoint;
	/**
	 * 最大积分
	 */
	@ApiModelProperty("最大积分")
	private Long maxPoint;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
